﻿using System;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.InterceptionExtension;

namespace SharedGenomics.Workbench.Aspects
{
    [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)]
    public class LoginRequiredAttribute : HandlerAttribute
    {
        public override ICallHandler CreateHandler(IUnityContainer container)
        {
            return container.Resolve<LoginRequiredCallHandler>();
        }
    }
}
